package com.bangdream.michelia.contract;

import com.bangdream.michelia.entity.LiveBean;
import com.bangdream.michelia.entity.LiveUrlBean;
import com.bangdream.michelia.entity.ReplayBean;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;

/**
 * Created by Mr.Wang on 2018/3/30.
 * 909732184@qq.com
 * 直播服务
 */

public class LiveContract {
    public interface ILiveView {
        //设置课程列表
        void setLiveList(boolean isSuccess, int page, List<LiveBean> data, String stDescribe);
        //设置课程详情
        void setLiveDetails(boolean isSuccess, LiveBean data, String stDescribe);
        void setLiveUrl(boolean isSuccess, List<String> url);
        void setRePlayLiveUrl(boolean isSuccess, List<String> url);
    }
    public interface ILiveModel {
        Observable getLiveList(Map<Object, Object> paramsMap);
        Observable getLiveDetails(String id);

        Observable getLiveUrl(String token,String name,String id);
        Observable getReplayLiveUrl(String token,String id);

    }

}
